#ifndef CRC_FUNCTIONS
#define CRC_FUNCTIONS

#if ARDUINO < 100
#include <WProgram.h>
#else  // ARDUINO
#include <Arduino.h>
#endif  // ARDUINO

struct hexCommand {
	uint8_t byteCount;
	uint16_t startAddress;
	uint8_t recordType;
} ;


bool checkCRC(char line[]);
uint8_t decodeHex(uint8_t MSD, uint8_t LSD);
void parseHexCommand(uint8_t line[]);
hexCommand parseHexCommand(uint8_t line[], uint8_t data[]);
uint8_t hexDigit(uint8_t hex);

#endif
